﻿@model OnlineExam.Entities.Category

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Category</legend>

    <div class="display-label">Taxonomy</div>
    <div class="display-field">@Model.Taxonomy</div>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">ParentID</div>
    <div class="display-field">@Model.ParentID</div>

    <div class="display-label">Exams</div>
    <div class="display-field">@(Model.Exams == null ? "None" : Model.Exams.Count.ToString())</div>

    <div class="display-label">Links</div>
    <div class="display-field">@(Model.Links == null ? "None" : Model.Links.Count.ToString())</div>

    <div class="display-label">Papers</div>
    <div class="display-field">@(Model.Papers == null ? "None" : Model.Papers.Count.ToString())</div>

    <div class="display-label">Posts</div>
    <div class="display-field">@(Model.Posts == null ? "None" : Model.Posts.Count.ToString())</div>

    <div class="display-label">Problems</div>
    <div class="display-field">@(Model.Problems == null ? "None" : Model.Problems.Count.ToString())</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


